package Decorator_Pattern;

public class Mocha extends  CondimentDecorator {
    protected Beverage beverage;
    public Mocha(Beverage beverage){
        this.beverage=beverage;
    }
    public String getDescription() {
        return beverage.getDescription()+",加抹茶";
    }

    public double cost() {
        return 1.2+beverage.cost();
    }
}
